//
// Created by zhangJA on 2020/6/22.
//For循环语句

#include <iostream>
using namespace std;
int main()
{
    int n;
    cout<<"Enter a positive integer:";
    cin>>n;
    cout<<"Number "<<n<<" Factors ";
    for (int k=1;k<=n;k++)
        if (n%k==0)
            cout<<k<<"  ";
    cout<<endl;
    return  0;
}
//Number 25 Factors 1  5  25
//for(初始语句;表达式1;表达式2)语句
//循环前先求解;为Ture时执行循环体;每次执行完循环体后求解
//for(声明:表达式)语句        for语句的另外一中形式：范围for语句  后面【容器】章节讨论